package com.practise.restful.model;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.HashMap;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JacksonXmlRootElement(localName = "User")
public class XmlUser implements Serializable {
    private Integer id;
    private String name;
    private Integer age;
    private String addr;
    @JacksonXmlProperty(localName = "testlable")
    private HashMap<String,String> hmap;
}
